<template>
  <p>111</p>
  <van-tabbar v-model="counter.count">
    <van-tabbar-item replace to="/" icon="home-o">标签</van-tabbar-item>
    <van-tabbar-item replace to="/search" icon="search">标签</van-tabbar-item>
    <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
    <van-tabbar-item icon="manager">标签</van-tabbar-item>
  </van-tabbar>
</template>

<script setup lang="ts">
import useCounter from "@/store/useCounter";
const counter = useCounter();
onMounted(() => {
  counter.count = 1;
  console.log(counter.count);
});
</script>

<style scoped></style>
